#ifndef SERIAL_H_
#define SERIAL_H_

int Serial_init(unsigned char * pBuffBegin, unsigned int buffSize);
void Serial_thread(void);
RTN_TYPE Serial_transferFlashImageToRAM(void);
enum SerialCmd {
	serCmd_init,
	serCmd_SI_1,
	serCmd_SI_2,
	serCmd_SO_1,
	serCmd_error,
	serCmd_ledError,
	serCmd_i2cError,
	serCmd_siError,
	serCmd_letterH=72
};
#define ascii_letter_upper_A 65
#define ascii_letter_lower_a 97
#define ascii_number_0 48
#define ascii_letter_lower_i 105
void Serial_sendCmdAndByte(enum SerialCmd cmd, unsigned char byte);
void Serial_sendCmdAndData(enum SerialCmd cmd, unsigned char * data, unsigned int numBytes);

#endif /* SERIAL_H_ */
